//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    
  },

  //事件处理函数
  btnTapped: function() {
    wx.switchTab({
      url: '../videoPages/videoList/videoList',
    })
  },

  onGotUserInfo: function (e) {
    console.log(e.detail.errMsg)
    console.log(e.detail.userInfo)
    console.log(e.detail.rawData)
    
    let nickName = e.detail.userInfo.nickName
    let avatarUrl = e.detail.userInfo.avatarUrl
    app.globalData.nickName = nickName
    app.globalData.avatarUrl = avatarUrl
    wx.switchTab({
      url: '../videoPages/videoList/videoList',
    })
  },

  onLoad: function () {
  }

})
